<?php
ini_set('max_execution_time', 0);

define('SERVER_ROOT', realpath(dirname(__FILE__) . '/../'));
require_once SERVER_ROOT . '/bootstrap.php';

$logPath = 'C:\var\log\seo_patrol\server.log';
Ezer_Log::setLogger(new Ezer_FileLogger($logPath));

$config = Ezer_Config::createFromPath(SERVER_ROOT . '/config.xml');
$dbConfig = $config->database->toArray();

Propel::setConfiguration($dbConfig);
Propel::initialize();

$handler = new Ezer_BusinessProcessHandler();
$handler->run();
